package com.bw.service;

import com.bw.bean.Emp;
import com.bw.dao.EmpDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmpServiceImpl implements EmpDao{
    @Autowired
    EmpDao empDao;
    //正确查询数据，两表信息显示正确
    @Override
    public List<Emp> list1() {
        return empDao.list1();
    }
    //根据商品名模糊查询
    @Override
    public List<Emp> list2(String likename) {
        return empDao.list2(likename);
    }

    @Override
    public List<Emp> list3(Integer price) {
        return empDao.list3(price);
    }

    @Override
    public List<Emp> list4(String a, String b) {
        return empDao.list4(a,b);
    }

    @Override
    public int add(Emp emp) {
        return empDao.add(emp);
    }

    @Override
    public int del(int id) {
        return empDao.del(id);
    }

    @Override
    public int upd(int id) {
        return empDao.upd(id);
    }


}
